package com.muyu.gateway.service;

import com.muyu.common.core.domain.Result;
import com.muyu.common.core.exception.CaptchaException;
import com.muyu.gateway.model.resp.CaptchaCodeResp;

/**
 * 验证码处理
 *
 * @author muyu
 */
public interface ValidateCodeService {
    /**
     * 生成验证码
     */
    public Result<CaptchaCodeResp> createCaptcha () throws CaptchaException;

    /**
     * 校验验证码
     */
    public void checkCaptcha (String key, String value) throws CaptchaException;
}
